package com.wsd.action;

import java.util.HashMap;
import java.util.Map;

import org.apache.commons.logging.Log;

import com.opensymphony.xwork2.ActionSupport;
import com.wsd.util.log.WsdLogFactory;
/**
 * 当action要处理Ajax请求时用该action 该action持有一个map变量，将要返回的数据加到该map中去，返回给前台
 * @author 小e
 *
 * Nov 25, 2010 9:16:38 PM
 */
public class BaseAction extends ActionSupport {
	
	protected Map result = new HashMap();
	protected boolean success = true;//业务操作结果
	protected String AJAX = "ajax";//返回类型
	protected Log log = WsdLogFactory.getLog("SYS_LOG");
	public Map getResult() {
		return result;
	}
	public void setResult(Map result) {
		this.result = result;
	}
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
}